import { http } from '@/common/https.js'


// 货物货物列表
export const goodsListApi = (data) => {
  return http({
    url: `/logistics/material/list?`,
    method: 'get',
    data,
    userid: true
  })
}

// 删除货物
export const goodsDeleteApi = (id) => {
  return http({
    url: `/logistics/material/${id}`,
    method: 'delete'
  })
}

// 获取货物详情
export const goodsDetailApi = (id) => {
  return http({
    url: `/logistics/material/${id}`,
    method: 'get'
  })
}

// 入库货物列表
export const goodsInListApi = (data) => {
  return http({
    url: `/logistics/inorderdetail/list`,
    method: 'get',
    data,
    custid: true
  })
}
// 入库货物详情
export const goodsInDetailApi = (id) => {
  return http({
    url: `/logistics/inorderdetail/${id}`,
    method: 'get'
  })
}
// 出库货物列表
export const goodsOutListApi = (data) => {
  return http({
    url: `/logistics/outorderdetail/list`,
    method: 'get',
    data,
    custid: true
  })
}
// 出库货物详情
export const goodsOutDetailApi = (id) => {
  return http({
    url: `/logistics/outorderdetail/${id}`,
    method: 'get'
  })
}